package com.qfedu.common.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 定位记录实体类
 * @author cc
 */
@Data
@TableName("location_record")
public class LocationRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String ip;
    private Double longitude;
    private Double latitude;
    private String address;
    private String formattedAddress;
    private String city;
    private String province;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}